package br.com.relatorio.DAO;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import br.com.relatorio.repositorio.AcompProcessosRelatoriosRepositorio;

@Repository
public class AcompProcessosRelatoriosDAO implements AcompProcessosRelatoriosRepositorio{
	
	private SessionFactory sf;

	@Autowired
	public AcompProcessosRelatoriosDAO(SessionFactory factory) {
		this.sf = factory;

	}

	public Session getSession() {
		return sf.getCurrentSession();
	}
	
	

}
